<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>

<html>

<head>
<meta name="decorator" content="moduleEdit" />
<script type="text/javascript" src="${staticPath}/js/brand.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#supplierForm").validate({
			 rules: {
				 comEmployees: {
				 	number: true
				 },
				 marketRunYear:{
					number:true 
				 },
				 email:{
					 email:true
				 },
				 companyMoble:
				 {
					 phone:true
				 },
				 fax:{
					 phone:true
				 },
				 organizationCode:{
					 organization:true
				 },
				 quality:{
					 required:true
				 },
				 supplierLevel:{
					 required:true
				 },
				 supplierStatus:{
					 required:true
				 }
			 },
			submitHandler: function(form){
				Oosp_Loading('正在提交，请稍等...');
				form.submit();
			},
			errorContainer: "#messageBox",
			errorPlacement: function(error, element) {
				$("#messageBox").text("输入有误，请先更正。");
				if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
					error.appendTo(element.parent().parent());
				} else {
					error.insertAfter(element);
				}
			}
		});
		
		$("#supplierRegisterForm").validate({
			rules: {
				businessNo:{
					businessno:true
				 },
				landTaxNo:{
					landtaxno:true
				},
				registerAmount:{
					number:true 
				},
				taxType:{
					 required:true
				}
			 },
			submitHandler: function(form){
				Oosp_Loading('正在提交，请稍等...');
				form.submit();
			},
			errorContainer: "#messageBox",
			errorPlacement: function(error, element) {
				$("#messageBox").text("输入有误，请先更正。");
				if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
					error.appendTo(element.parent().parent());
				} else {
					error.insertAfter(element);
				}
			}
		});
		
		$("#supplierBankForm").validate({
			submitHandler: function(form){
				Oosp_Loading('正在提交，请稍等...');
				form.submit();
			},
			errorContainer: "#messageBox",
			errorPlacement: function(error, element) {
				$("#messageBox").text("输入有误，请先更正。");
				if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
					error.appendTo(element.parent().parent());
				} else {
					error.insertAfter(element);
				}
			}
		});
		 $("#endDate").change(function(){
				if ($("#endDate").val() <= $("#startDate").val()) {
					$("#endDate").focus();
					top.$.jBox.tip('截止日期必须大于起始日期,请重新输入!', 'warning');
					return false;
				}
			});
			
			$("#startDate").change(function(){
				if($("#endDate").val()!=null&&$("#endDate").val()!=""){
					if ($("#endDate").val() <= $("#startDate").val()) {
						$("#startDate").focus();
						top.$.jBox.tip('截止日期必须大于起始日期,请重新输入!', 'warning');
						return false;
					}
				}
			});
	});

	$(function() {
		var tabId = $("#tabId").val();
		if(null != tabId && tabId.length > 0)
		{
			$("#tab"+tabId).parent().children("li").removeClass("active");
			$("#tab"+tabId).addClass("active");
			$("div[class='tab-pane active']").removeClass("active");
			$("#"+tabId).addClass("active");
		}
		max_tr_bank = $("#hidden_bank").closest("table").find("tr").length - 3;
		max_tr_contact = $("#hidden_contact").closest("table").find("tr").length - 3;
	});

	//添加隐藏域
	function add_hidden(tId, tList) 
	{
		var tr = $(tId).clone();
		var table = $(tId).closest("table");
		//替换所有的hidden，方便spring的form绑定
		var inputs = tr.find("input");
		if (tId == "#hidden_contact") {
			max_tr_contact++;
		}
		if (tId == "#hidden_bank") {
			max_tr_bank++;
		}
		inputs.each(function() {
			if (tId == "#hidden_contact") {
				this.id = tList + max_tr_contact + this.id;
				this.name = tList + "[" + max_tr_contact + "]" + this.name;
			}
			if (tId == "#hidden_bank") {
				this.id = tList + max_tr_bank + this.id;
				this.name = tList + "[" + max_tr_bank + "]" + this.name;
			}
		});
		tr.show();
		table.append(tr);
	}
	
	function delete_tr(t, dList) 
	{
		var tr = $(t).closest("tr");
		var id = tr.find("input :first").val();
		if (id != 0) {
			var val = $(dList).val();
			if (val == "") {
				$(dList).val(id);
			} else {
				$(dList).val(val + "," + id);
			}
		}
		tr.remove();
	}
</script>
<style type="text/css">
h4{ border-bottom:1px dotted #ccc; padding-bottom:10px; margin:30px 0 15px; color:#b12028; font-size: 12px;}
.span-required {color: red;}
</style>
</head>
<body>
<div class="Report_f">
           <div class="Report_f_1">
                <div class="Report_f_title_1">供应商准入</div>
                <ul class="nav nav-tabs Report_f_title_2">
                    <li id="tabhome" class="active"><a href="#home" data-toggle="tab">基本资料</a></li>
                    <li id="tabbus"><a href="#bus"  data-toggle="tab"  >企业资质</a></li> 
                    <li id="tabbank"><a href="#bank"  data-toggle="tab" >银行账户</a></li> 
                    <li id="tabAtt"><a href="#att"  data-toggle="tab" >附件上传</a></li>
                  </ul>
			<!-- Tab panes -->
			<input type="hidden" id="tabId" value="${tabId }"/>
			<tags:message content="${message}"/>
			<div class="tab-content Report_f_title_3">
                  <div class="tab-pane active" id="home">
                  <div class="Report_f_title_4">
	        		<form:form id="supplierForm" modelAttribute="supplier" enctype="multipart/form-data" action="${contextPath}/biz/brand/supplier/save" method="post"
						class="form-inline" role="form">
						<form:hidden path="id" />
						<form:hidden path="viceId" />
						<form:hidden id="supplierNo" path="supplierNo"/>
						<h4>基本信息</h4>
						<div class="f_2">
							<div class="form-group col-sm-6">
								<label for="inputEmail3" class="col-sm-3 control-label f_4"><span class="span-required">*</span>供应商类型：</label>
			                      <div class="col-sm-9 f_6">
			                        <ossp:select dictType="supplierType" defaultSelected="1" value="${ supplier.supplierType}" name="supplierType" id="supplierType" class_="f_5 required"></ossp:select>
			                      </div>
							</div>
							<div class="form-group col-sm-6">
							<label for="organizationCode" class="col-sm-3 control-label f_4"><span class="span-required">*</span>组织机构代码:</label>
							<div class="col-sm-9 f_6">
								<form:input id="organizationCode" path="organizationCode" placeholder="请输入组织机构代码" 
								htmlEscape="false" rows="4" class="f_5 required" />
							</div>
						</div>
					   </div>
						<div class="f_2">
							<div class="form-group col-sm-6">
								<label for="cname" class="col-sm-3 control-label f_4"><span class="span-required">*</span>公司名称:</label>
								<div class="col-sm-9 f_6">
									<form:input id="cname" path="cname" maxlength="200" placeholder="请输入公司名称" class="f_5 required" />
								</div>
							</div>
							<div class="form-group col-sm-6">
								<label for="quality" class="col-sm-3 control-label f_4"><span class="span-required">*</span>供应商性质:</label>
								<div class="col-sm-9 f_6">
									<ossp:select dictType="SUPPLIER_QUALITY" value="${ supplier.quality}" name="quality" id="quality" class_="f_5 required"></ossp:select>
								</div>
							</div>
					   </div>
						<div class="f_2">
							<div class="form-group col-sm-6">
								<label for="address" class="col-sm-3 control-label f_4"><span class="span-required">*</span>企业地址:</label>
								<div class="col-sm-9 f_6">
									<form:input id="address" path="address" maxlength="20" class="f_5 required"/>
								</div>
							</div>
							<div class="form-group col-sm-6">
								<label for="workAddress" class="col-sm-3 control-label f_4"><span class="span-required">*</span>办公地址:</label>
								<div class="col-sm-9 f_6">
									<form:input id="workAddress" path="workAddress" maxlength="20" class="f_5 required"/>
								</div>
							</div>
					   </div>
					   <div class="f_2">
							<div class="form-group col-sm-6">
								<label for="url" class="col-sm-3 control-label f_4">企业网址:</label>
								<div class="col-sm-9 f_6">
									<form:input id="url" path="url" maxlength="20" class="f_5"/>
								</div>
							</div>
							<div class="form-group col-sm-6">
								<label for="companyMoble" class="col-sm-3 control-label f_4"><span class="span-required">*</span>企业电话:</label>
								<div class="col-sm-9 f_6">
									<form:input id="companyMoble" path="companyMoble" maxlength="20" class="f_5 required"/>
								</div>
							</div>
					   </div>
					   <div class="f_2">
							<div class="form-group col-sm-6">
								<label for="fax" class="col-sm-3 control-label f_4">企业传真:</label>
								<div class="col-sm-9 f_6">
									<form:input id="fax" path="fax" maxlength="20" class="f_5"/>
								</div>
							</div>
							<div class="form-group col-sm-6">
								<label for="email" class="col-sm-3 control-label f_4">企业邮箱:</label>
								<div class="col-sm-9 f_6">
									<form:input id="email" path="email" 
									    maxlength="20" class="f_5"/>
								</div>
							</div>
					   </div>
					   <div class="f_2">
							<div class="form-group col-sm-6">
								<label for="comEmployees" class="col-sm-3 control-label f_4">员工人数:</label>
								<div class="col-sm-9 f_6">
									<form:input id="comEmployees" path="comEmployees" maxlength="20" class="f_5"/>
								</div>
							</div>
							<div class="form-group col-sm-6">
								<label for="parentSupplierName" class="col-sm-3 control-label f_4">供应商上级名称:</label>
								<div class="col-sm-9 f_6">
									<form:input id="parentSupplierName" path="parentSupplierName" maxlength="20" class="f_5"/>
								</div>
							</div>
					   </div>
					   <div class="f_2">
							<div class="form-group col-sm-6">
								<label for="marketRunYear" class="col-sm-3 control-label f_4">市场运作年限:</label>
								<div class="col-sm-9 f_6">
									<form:input id="marketRunYear" path="marketRunYear" maxlength="20" class="f_5"/>
								</div>
							</div>
							<div class="form-group col-sm-6">
								<label for="foundDate" class="col-sm-3 control-label f_4">成立日期:</label>
								<div class="col-sm-9 f_6">
								
									<div class="input-group date form_date" data-date="" data-date-format="yyyy-mm-dd" >
										<input class="form-control f_13" type="text" placeholder="成立日期"
											id="foundDate"
											name="foundDate"
											value="<fmt:formatDate value="${supplier.foundDate}" pattern="yyyy-MM-dd"/>"
											readonly />
											<span class="input-group-addon f_time"><span class="glyphicon glyphicon-remove"></span></span>
					                		<span class="input-group-addon f_time"><span class="glyphicon glyphicon-calendar"></span></span>
									</div>
								</div>
							</div>
					   </div>
					   <div class="f_2">
					    	<div class="form-group col-sm-6">
								<label for="supplierLevel" class="col-sm-3 control-label f_4"><span class="span-required">*</span>供应商等级:</label>
								<div class="col-sm-9 f_6">
									<ossp:select dictType="SUPPLIER_LEVEL" value="${supplier.supplierLevel}" name="supplierLevel" id="supplierLevel" class_="f_5 required"></ossp:select>
								</div>
							</div>
							 <div class="form-group col-sm-6">
								<label for="quality" class="col-sm-3 control-label f_4"><span class="span-required">*</span>供应商状态:</label>
								<div class="col-sm-9 f_6">
									<ossp:select dictType="SUPPLIER_STATUTS" value="${supplier.supplierStatus}" defaultSelected="0" name="supplierStatus" id="supplierStatus" class_="f_5 required"></ossp:select>
								</div>
							</div>
					   </div>
					   <div class="f_3">
	                      <div class="form-group col-xs-12">
							<label for="summary" class="col-lb-1 control-label f_10">企业简介:</label>
							<div class="col-sm-10 col-lb-2 f_6">
								<form:textarea id="summary" path="summary" class="form-control f_11"  maxlength="1000"/>
							</div>
						 </div>
					</div>
					<h4>联系方式</h4>
					<table class="table table-striped table-hover o-l-table table-bordered" id="table1">
						<thead>
						<tr>
							<th><span class="span-required">*</span>姓名</th>
							<th><span class="span-required">*</span>类别</th>
							<th>职务</th>
							<th><span class="span-required">*</span>手机号码</th>
							<th><span class="span-required">*</span>E-mail</th>
							<th>
								<button onclick="add_hidden('#hidden_contact','supplierContactsList');"
								type="button" class="btn btn-warning btn_1 pull-right">添&nbsp;加</button>
							</th>
						</tr>
					</thead>
					<tbody>
						<c:forEach items="${supplier.supplierContactsList}" var="item"
							varStatus="var">
							<tr>
								<form:hidden path="supplierContactsList[${var.index}].id"
									maxlength="20" class="f_5" />
								<form:hidden
									path="supplierContactsList[${var.index}].supplierAccountId"
									maxlength="20" class="f_5" />
								<td><form:input
										id="supplierContactsList[${var.index}].contactName"
										path="supplierContactsList[${var.index}].contactName"
										maxlength="200" class="f_5 required" /></td>
								<td class="col-sm-2">
								<ossp:select dictType="IS_RESPONPERSON" value="${item.isResponPerson }"  name="supplierContactsList[${var.index}].isResponPerson"
							id="supplierContactsList[${var.index}].isResponPerson" class_="f_5 required"></ossp:select>
								</td>
								<td><form:input
										id="supplierContactsList[${var.index}].position"
										path="supplierContactsList[${var.index}].position"
										maxlength="200" class="f_5" /></td>
								<td><form:input
										id="supplierContactsList[${var.index}].mobile"
										path="supplierContactsList[${var.index}].mobile"
										maxlength="200" class="f_5 required" /></td>
								<td><form:input
										id="supplierContactsList[${var.index}].email"
										path="supplierContactsList[${var.index}].email"
										maxlength="200" class="f_5 required" /></td>
								<td><input type="button"
									onclick="delete_tr(this,'#delBankId')" value="删除"
									class="btn btn-default btn-sm"></td>
							</tr>

						</c:forEach>
						<!-- 隐藏行，用于新增明细start -->
						<tr style="display: none" id="hidden_contact">
							<input type="hidden" maxlength="20" value="0"
								class="form-control required" name=".id" id=".id">
							<input type="hidden" maxlength="20" value="${supplier.id }"
								class="form-control required" name=".supplierAccountId"
								id=".supplierAccountId">
							<td><input type="text" maxlength="20" value=""
								class="f_5 required" name=".contactName"
								id=".contactName"></td>
							<td><ossp:select dictType="IS_RESPONPERSON" defaultSelected="0" name=".isResponPerson"
								id=".isResponPerson" class_="f_5 required"></ossp:select></td>
							<td><input type="text" maxlength="20" value=""
								class="f_5" name=".position" id=".position"></td>
							<td><input type="text" maxlength="20" value=""
								class="f_5 required " name=".mobile" id=".mobile"></td>
							<td><input type="text" maxlength="20" value=""
								class="f_5 required" name=".email" id=".email"></td>
							<td><input type="button"
								onclick="delete_tr(this,'#delContactId')" value="删除"
								class="btn btn-default btn-sm"></td>
						</tr>
						<!-- 隐藏行，用于新增明细end -->
					</tbody>
				</table>
				<input type="hidden" name="delContactId" id="delContactId">
				<h4></h4>
				<div class="f_12">
				     <button type="submit" class="btn btn-success btn_5 btn_right">保存</button>
				</div>
			 		</form:form>
                   </div>
              </div>
              <div class="tab-pane" id="bus">
				 <div class="Report_f_title_4"> 
			  			<form:form id="supplierRegisterForm" modelAttribute="supplierRegister" enctype="multipart/form-data" action="${contextPath}/biz/brand/supplierRegister/save" method="post" class="form-inline" role="form">
                         <form:hidden path="id" />
                         <form:hidden path="supplierAccountId"/>
						<h4>营业执照信息</h4>
						<div class="f_2">
								<div class="form-group col-sm-6">
			   					<label for="supplierRegister_businessNo" class="col-sm-3 control-label f_4"><span class="span-required">*</span>营业执照号:</label>
							   <div class="col-sm-9 f_6">
							    	<form:input id="supplierRegister_businessNo" placeholder="请输入营业执照号"
									path="businessNo" htmlEscape="false" rows="4"
									class="f_5 required" />
							    </div>
							</div>
							<div class="form-group col-sm-6">
								<label for="supplierRegister_legalPerson" class="col-sm-3 control-label f_4"><span class="span-required">*</span>法定代表人姓名:</label>
								<div class="col-sm-9 f_6">
									<form:input id="supplierRegister_legalPerson"
										path="legalPerson" htmlEscape="false" rows="4"
										class="f_5 required" />
								</div>
							</div>
						</div>
						<div class="f_2">
								<div class="form-group col-sm-6">
			   					<label for="registerAddress" class="col-sm-3 control-label f_4"><span class="span-required">*</span>营业执照注册地方:</label>
							   <div class="col-sm-9 f_6">
							    	<form:input id="registerAddress"
										path="registerAddress" htmlEscape="false" rows="4"
										class="f_5 required" />
							    </div>
							</div>
							<div class="form-group col-sm-6">
								<label for="registerAmount" class="col-sm-3 control-label f_4">注册资金(万):</label>
								<div class="col-sm-9 f_6">
									<form:input id="registerAmount" path="registerAmount" htmlEscape="false" rows="4" class="f_5" />
								</div>
							</div>
						</div>
						<div class="f_2">
							<div class="form-group col-sm-6">
			   					<label for="registerAddress" class="col-sm-3 control-label f_4"><span class="span-required">*</span>起始日期:</label>
							   <div class="col-sm-9 f_6">
							    	<div class="input-group date form_date" data-date="" data-date-format="yyyy-mm-dd" >
										<input class="form-control f_13 required" type="text" placeholder="起始日期"
											id="startDate"
											name="registerDate"
											value="<fmt:formatDate value="${supplierRegister.registerDate}" pattern="yyyy-MM-dd"/>"
											readonly />
											<span class="input-group-addon f_time"><span class="glyphicon glyphicon-remove"></span></span>
					                		<span class="input-group-addon f_time"><span class="glyphicon glyphicon-calendar"></span></span>
									</div>
							    </div>
							</div>
							<div class="form-group col-sm-6">
								<label for="registerAmount" class="col-sm-3 control-label f_4"><span class="span-required">*</span>截止日期:</label>
								<div class="col-sm-9 f_6">
									 <div class="input-group date form_date" data-date="" data-date-format="yyyy-mm-dd" >
										<input class="form-control f_13 required" type="text" placeholder="截止日期"
											id="endDate" name="endDate"
											value="<fmt:formatDate value="${supplierRegister.endDate}" pattern="yyyy-MM-dd"/>"
											readonly />
											<span class="input-group-addon f_time"><span class="glyphicon glyphicon-remove"></span></span>
					                		<span class="input-group-addon f_time"><span class="glyphicon glyphicon-calendar"></span></span>
									</div>
								</div>
							</div>
						</div>
						<div class="f_2">
							<div class="form-group col-sm-6">
								<label for="address" class="col-sm-3 control-label f_4"><span class="span-required">*</span>注册地址:</label>
								<div class="col-sm-9 f_6">
									<form:input id="address" path="address" htmlEscape="false" rows="4" class="f_5 required" />
								</div>
							</div>
						</div>		
					<div class="f_3">
	                      <div class="form-group col-xs-12">
							<label for="brandMarket.disadvantage" class="col-lb-1 control-label f_10">法定经营范围:</label>
							<div class="col-sm-10 col-lb-2 f_6">
								<form:textarea id="businessScope" path="businessScope" class="form-control f_11"  maxlength="300"/>
							</div>
						 </div>
					</div>	
					<h4>纳税人证明</h4>
					<div class="f_2">
							<div class="form-group col-sm-6">
								<label for="landTaxNo" class="col-sm-3 control-label f_4"><span class="span-required">*</span>税务登记证号:</label>
								<div class="col-sm-9 f_6">
									<form:input id="landTaxNo" placeholder="请输入税务登记证号" path="landTaxNo" htmlEscape="false" rows="4" class="f_5 required" />
								</div>
							</div>
					</div>	
					<div class="f_2">
								<div class="form-group col-sm-6">
			   					<label for="taxProxy" class="col-sm-3 control-label f_4">纳税属性:</label>
							   <div class="col-sm-9 f_6">
							   		<ossp:radio dictType="SUPPLIER_TAXPROXY" defaultChecked="Z1" value="${ supplierRegister.taxProxy}" name="taxProxy"id="taxProxy"></ossp:radio>
							    </div>
							</div>
							<div class="form-group col-sm-6">
								<label for="taxType" class="col-sm-3 control-label f_4"><span class="span-required">*</span>税票类型:</label>
								<div class="col-sm-9 f_6">
									<ossp:select dictType="TAX_TYPE" name="taxType" id="taxType" defaultSelected="0" value="${supplierRegister.taxType }" class_="f_5 required"></ossp:select>
								</div>
							</div>
						</div>
						<div class="f_12">
					     <button type="submit" id="save" class="btn btn-success btn_5 btn_right" <c:if test="${supplierRegister.supplierAccountId == null}">disabled="disabled"</c:if>>保&nbsp;存</button>
					   </div>
              		</form:form>
				</div>
				</div>
				
				<div class="tab-pane" id="bank">
                         <div class="Report_f_title_4">
					<form:form id="supplierBankForm" modelAttribute="supplierBank" action="${contextPath}/biz/brand/supplierBank/save" method="post" class="form-inline" role="form">
						<form:hidden path="id" />
						<form:hidden path="supplierId" />
						<h4>银行账户信息</h4>
						<table class="table table-striped table-hover o-l-table table-bordered" id="table2">
							<thead>
								<tr>
									<th><span class="span-required">*</span>银行代码</th>
									<th><span class="span-required">*</span>银行名称</th>
									<th><span class="span-required">*</span>银行简称</th>
									<th><span class="span-required">*</span>开户账号</th>
									<th>
										<button onclick="add_hidden('#hidden_bank','supplierBankList');"
										type="button" class="btn btn-warning btn_1 pull-right">添&nbsp;加</button>
									</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${supplierBank.supplierBankList}"
									varStatus="var">
									<tr>
										<form:hidden path="supplierBankList[${var.index}].id"/>
										<form:hidden path="supplierBankList[${var.index}].supplierId"/>
											<td>
												<form:input id="supplierBankList[${var.index}].bankCode"
													path="supplierBankList[${var.index}].bankCode" maxlength="200"
													class="f_5 required" />
											</td>
											<td>
												<form:input id="supplierBankList[${var.index}].bankName"
													path="supplierBankList[${var.index}].bankName" maxlength="200"
													class="f_5 required" />
											</td>
											<td>
												<form:input id="supplierBankList[${var.index}].bankSname"
													path="supplierBankList[${var.index}].bankSname"
													maxlength="200" class="f_5 required" />
										   </td>
											<td>
												<form:input id="supplierBankList[${var.index}].bankNo"
												path="supplierBankList[${var.index}].bankNo" maxlength="200"
												class="f_5 required" />
										</td>	
										<td><input type="button"
											onclick="delete_tr(this,'#delBankIds')" value="删除"
											class="btn btn-default btn-sm"></td>
									</tr>
								</c:forEach>
								<!-- 隐藏行，用于新增明细start -->
								<tr style="display: none" id="hidden_bank">
									<input type="hidden" maxlength="20" value="0" name=".id" id=".id">
									<input type="hidden" maxlength="20"
										value="${supplierBank.supplierId}" name=".supplierId" id=".supplierId">
										<td>
											<input type="text" maxlength="20" value=""
												class="f_5 required" name=".bankCode" id=".bankCode">
										 </td>
										<td>
											<input type="text" maxlength="20" value=""
												class="f_5 required" name=".bankName" id=".bankName">
										 </td>
											<td>
												<input type="text" maxlength="20" value=""
													class="f_5 required" name=".bankSname" id=".bankSname">
											 </td>
											<td>
											<input type="text" maxlength="20" value=""
												class="f_5 required" name=".bankNo" id=".bankNo">
										</td>	
									<td><input type="button"
										onclick="delete_tr(this,'#delBankIds')" value="删除"
										class="btn btn-default btn-sm"></td>
								</tr>
								<!-- 隐藏行，用于新增明细end -->
							</tbody>
					</table>
					<input type="hidden" name="delBankIds" id="delBankIds">
				   <div class="f_12">
				     <button type="submit" id="save" class="btn btn-success btn_5 btn_right" <c:if test="${supplierBank.supplierId == null}">disabled="disabled"</c:if>>保&nbsp;存</button>
				   </div>
  		   </form:form>
                 </div>
              </div>
              
              <div class="tab-pane" id="att">
				 <div class="Report_f_title_4"> 
					 <h4>组织机构代码证</h4>
					 <div class="f_2">
						<div class="form-group col-sm-6">
							<label for="supplier_organizationCode" class="col-sm-3 control-label f_4">组织机构代码证电子版:</label>
							<div class="col-sm-9 f_6">
							 	<att:upload modleName="com.maoye.ossp.biz.brand.entity.Supplier" key="organization" soureBillID="${supplier.viceId}"></att:upload>
								<!-- <input type="file" name="supplier_organizationCode"> -->
							</div>
						</div>
					</div>		
					<h4>营业执照证</h4>
						<div class="f_2">
							<div class="form-group col-sm-6">
								<label for="supplier_businessNo" class="col-sm-3 control-label f_4">营业执照号电子版:</label>
								<div class="col-sm-9 f_6">
								<att:upload modleName="com.maoye.ossp.biz.brand.entity.Supplier" key="business" soureBillID="${supplier.viceId}"></att:upload>
									<!-- <input type="file" name="supplier_businessNo" > -->
								</div>
							</div>
						</div>	
					<h4>税务登记证</h4>
						<div class="f_2">
							<div class="form-group col-sm-6">
								<label for="supplier_orgNo" class="col-sm-3 control-label f_4">税务登记证电子版:</label>
								<div class="col-sm-9 f_6">
								<att:upload modleName="com.maoye.ossp.biz.brand.entity.Supplier" key="landTax" soureBillID="${supplier.viceId}"></att:upload>
									<!-- <input type="file" name="supplier_landTaxNo"> -->
								</div>
							</div>
						</div>	
				</div>
				</div>
		  </div>
	</div>	
</div>
<script type="text/javascript">
	$('.form_date').datetimepicker({
        language:  'zh-CN',
        weekStart: 1,
        todayBtn:  1,
		autoclose: 1,
		todayHighlight: 1,
		startView: 2,
		minView: 2,
		forceParse: 0,
		format: 'yyyy-mm-dd',
		pickerPosition: "bottom-left"
    });
	</script>
</body>
</html>